package com.wei.shopping.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {
    @GetMapping("/")
    public String index(){
        return "index";
    }
    @GetMapping("/login")
    public String login(){
        return "user/logreg";
    }
    @GetMapping("/admin")
    public String adminLogin(){ return "admin/login";}
    @GetMapping("/admin/index")
    public String adminIndex(){ return "admin/index";}
    @GetMapping("/admin/userlist")
    public String userlist(){
        return "admin/userlist";
    }
    @GetMapping("/admin/admincentor")
    public String admincentor(){
        return "admin/admincentor";
    }
    @GetMapping("/commoditylist")
    public String commodity(){
        return "admin/commoditylist";
    }
    @GetMapping("/news/relnews")
    public String relnews(){
        return "/news/relnews";
    }
    @GetMapping("/news/newslist")
    public String newslist(){
        return "/news/newslist";
    }
    @GetMapping("/sold/soldlist")
    public String soldlist(){
        return "/admin/soldlist";
    }
    @GetMapping("/sold/console")
    public String tongjitu(){
        return "/admin/console";
    }
    @GetMapping("/user/main")
    public String usermain(){
        return "/user/main";
    }
    @GetMapping("/user/changepassword")
    public String changepassword(){
        return "/user/changepassword";
    }
    @GetMapping("/user/centre")
    public String usercontre(){
        return "/user/usercentre";
    }
    @GetMapping("/user/collect")
    public String collect(){
        return "/user/collects";
    }
    @GetMapping("/user/relcomm")
    public String relcomm(){
        return "/user/relcomm";
    }
    @GetMapping("/user/console")
    public String console(){
        return "/user/console";
    }
    @GetMapping("/user/commlist")
    public String usercommlist(){ return "/user/commoditylist";}
    @GetMapping("/user/notices")
    public String notices(){ return "/user/notices";}
    @GetMapping("/user/soldrecord")
    public String soldrecord(){ return "/user/soldrecord";}
    @GetMapping("/commolist/commolist")
    public String commolist(){ return "/commodity/commolist";}
    @GetMapping("/commolist/news")
    public String news(){ return "/commodity/newslist";}
    @GetMapping("/commolist/feedback")
    public String feedback(){ return "/commodity/feedback";}
    @GetMapping("/user/order")
    public String order(){ return "/user/order"; }
}
